<@override name="head">
<title>账号权限管理</title>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootbox.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common/table.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/back/resources.js"></script>
</@override>
<@override name="body">
<div id=content_bg>
<#include "/main/home/common.ftl"/>
    <div id= "pagecontent">
    	<div id="content">
   			<div id="navDiv">
				<ul id="navDiv_ul">
					<li><i class="icon-home"></i></li>
					<li><a href="${ctx}/back/main/dashboard">首页</a></li>
					<li><i class="icon-angle-right"></i></li>
				    <li class="navDiv_currentLi">账号权限管理</li>
				</ul>  
 			</div>
 			
 			<form id="myform" action="${ctx}/back/main/account/list" method="post">
 				<div id="navButtons">
					<div id="searchValueDiv">
						<input type="hidden" id="page" name="page" value="${pager.page}"/>
						<input id="searchValue" type="text" name="searchValue" value="" tabindex="1" placeholder="请输入角色名"/>
						<input id="serachData_img" type="submit" value=""/>
					</div>
				</div>
 				<table border="1" class="tableFig">
 					<thead>
				        <tr class="theadTr">
				        	<th class="theadTh" style="width:5%;">id</div></th>
							<th class="theadTh" style="width:5%;">账号</th>
							<th class="theadTh" style="width:10%;">角色</th>
							<th class="theadTh" style="width:10%;">所属系统</th>
							<th class="theadTh" style="width:15%;">操作</th>
				        </tr>
				    </thead>
				    <tbody>
				    	<#if accountAuthoritys ??>
				        <#list accountAuthoritys as accountauthority>
				        <tr id="tbodyTr">
							
							<td class="tbodyTd">${accountauthority.id!}</td>
							<td class="tbodyTd">${accountauthority.account!}</td>
							<td class="tbodyTd">${accountauthority.role!}</td>
							<#if accountauthority.sysType==1>
							<td class="tbodyTd">后台管理平台</td>
							<#elseif accountauthority.sysType==2>
							<td class="tbodyTd">媒体方平台</td>
							<#else>
							<td class="tbodyTd">需求方平台</td>
							</#if>
							<td class="tbodyTd">
							<div id="listButtons">
								<a class="btn3" href='${ctx}/back/main/account/authority?accountId=${accountauthority.id!}'>编辑</a>
								

							</div>
							</td>
				        </tr>

						 </#list>
						</#if>  
				    </tbody>
 				</table>
 				<div id="pageDiv" style="margin-top:0px;">
					<#include "/common/pagination/simple.ftl"/>
				</div>
 			</form>
		</div>
	</div>
</div>
</@override>
<@extends name="/common/simple.ftl"/>